<?php
//1、程序内部异常及错误
//1.1、函数中
trigger_error('user trigg msg', E_USER_NOTICE);

//1.2、类库中
throw new UE_Exception('Exception msg');

//1.3、模型中
$this->setErr('msg');

//1.4、控制器中
$this->setErr($model->getErrs());
$this->setOK('ok msg');
$this->setWarning('warning msg');

//1.5、显示
$this->tpl->apply('tpl');
$this->showMessage();





